fix(ci): skip docker.yml tag-input validation on direct tag pushes#1065
Merged
Conversation
The early Validate step ran on both workflow_call and push events, but push events never populate inputs.tag (the tag comes from github.ref). This regressed every real tag-push release — v1.6.3's Docker Build & Push failed at that gate. The downstream Verify step already falls back to GITHUB_REF, so the upfront guard only needs to cover workflow_call.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
CI Report✅ All checks passed Pipeline Status
Test Results
✅ All 7242 tests passed 97 test(s) skipped — expand for details
Code CoverageTests
📋 View full run · Generated by CI |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The Docker Build & Push workflow failed on the v1.6.3 tag push:
https://github.com/abhigyanpatwari/GitNexus/actions/runs/24897853631/job/72907431113
```
##[error]No tag provided to docker.yml — refusing to build/push.
```
Root cause: The "Validate tag input" step runs on both `workflow_call` and `push` events, but on a tag push `inputs.tag` is always empty — the tag comes from `github.ref`. The guard was added in #983 with the intent of protecting the RC reusable-workflow path, but the `|| push` branch causes every real release to fail at that gate.
The downstream "Verify tag matches gitnexus/package.json version" step already handles both cases by falling back to `GITHUB_REF` when `INPUT_TAG` is empty, so the early guard only needs to cover `workflow_call`.
Fix
Restrict the validate step to `workflow_call` only and add a comment explaining why `push` must not be included.
Test plan